﻿<Window x:Class="PirateShare.FirstStartWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PirateShare: First start" Width="628" ResizeMode="CanMinimize" SizeToContent="Height" Loaded="Window_Loaded">
    <StackPanel Margin="5,5,5,5">
        <GroupBox>
            <TextBlock HorizontalAlignment="Stretch" Height="Auto" TextWrapping="Wrap">
                Welcome to PirateShare.<LineBreak /><LineBreak />
                As this is the first time you are using PirateShare, you first need to generate a new Public/Private Key pair
                as well as doing some basic setup - like providing your DNS or IP and a Nickname.<LineBreak/>
                If you have a static IP you can use it as adress here. <Bold>If you have a dynamic IP, you will need to setup
                a dynamic-DNS solution first!</Bold> See our manual on 
                <Hyperlink NavigateUri="http://pirateshare.codeplex.com">
                    http://pirateshare.codeplex.com    
                </Hyperlink> for help.
            </TextBlock>
        </GroupBox>
        <GroupBox Header="Encryption Keys">
            <StackPanel>
                <Button Name="btnRegenerate" Click="btnRegenerate_Click">Generate new pair</Button>
                <TextBlock>Key pair:</TextBlock>
                <TextBox Name="txtKey" IsEnabled="True" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" Height="200" IsReadOnly="True"></TextBox>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="Basic info">
            <WrapPanel>
                <TextBlock Margin="5, 2, 5, 2">Nickname: </TextBlock>
                <TextBox Name="txtNickname" Width="80" Margin="5, 2, 5, 2"></TextBox>

                <TextBlock Margin="5, 2, 5, 2">IP/DNS:</TextBlock>
                <TextBox Name="txtDNS" Width="140" Margin="5, 2, 5, 2"></TextBox>

                <TextBlock Margin="5, 2, 5, 2">Port(TCP):</TextBlock>
                <TextBox Name="txtPort" Width="40" Margin="5, 2, 5, 2" Text="15557"></TextBox>

                <CheckBox Name="chkUpnp" Margin="5, 2, 5, 2" IsChecked="True">Enable UPnP</CheckBox>
            </WrapPanel>
        </GroupBox>
        <WrapPanel FlowDirection="RightToLeft">
            <Button Name="btnExit" Margin="5, 2, 5, 2" Width="100" Height="25" IsCancel="True">Exit</Button>
            <Button Name="btnAccept" Margin="5, 2, 5, 2" Width="200" Height="25" Click="btnAccept_Click">Accept</Button>
        </WrapPanel>
    </StackPanel>
</Window>
